import request from '@/utils/request'

/**
* 批次号工位绑定表分页查询
* @param {查询条件} data
*/
export function listBatchBinding(query) {
  return request({
    url: 'business/BatchBinding/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增批次号工位绑定表
* @param data
*/
export function addBatchBinding(data) {
  return request({
    url: 'business/BatchBinding',
    method: 'post',
    data: data,
  })
}
/**
* 修改批次号工位绑定表
* @param data
*/
export function updateBatchBinding(data) {
  return request({
    url: 'business/BatchBinding',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取批次号工位绑定表详情
* @param {Id}
*/
export function getBatchBinding(id) {
  return request({
    url: 'business/BatchBinding/' + id,
    method: 'get'
  })
}

/**
* 删除批次号工位绑定表
* @param {主键} pid
*/
export function delBatchBinding(pid) {
  return request({
    url: 'business/BatchBinding/delete/' + pid,
    method: 'delete'
  })
}
